package com.yunshang.shoppingmall.service.WeChat.Impl;

import com.yunshang.shoppingmall.entity.WeChatArticle;
import com.yunshang.shoppingmall.mapper.WeChatArticleMapper;
import com.yunshang.shoppingmall.service.WeChat.WeChatArticleService;
import com.yunshang.shoppingmall.shopping.WeChat.entity.Article;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("WeChatArticleService")
public class WeChatArticleServiceImpl implements WeChatArticleService {

    @Autowired
    WeChatArticleMapper weChatArticleMapper;

    @Override
    public WeChatArticle selectByPrimaryKey(Integer id) {
        return weChatArticleMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<WeChatArticle> selectArticleList() {
        return weChatArticleMapper.selectArticleList();
    }

    @Override
    public List<Article> ArticleList() {
        return weChatArticleMapper.ArticleList();
    }

    @Override
    public int insertSelective(WeChatArticle record) {
        return weChatArticleMapper.insertSelective(record);
    }

    @Override
    public int updateByPrimaryKeySelective(WeChatArticle record) {
        return weChatArticleMapper.updateByPrimaryKeySelective(record);
    }
}
